package com.xiangban.service.fegin;
import com.xiangban.model.TSystem;
import com.xiangban.model.res.ApiResult;
import com.xiangban.service.fallback.SmsServiceFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "system",fallbackFactory = SmsServiceFallback.class)
public interface SystemServiceFeign {
    @RequestMapping("/system/allSystemConfig")
    ApiResult<Object> allSystemConfig();

    @RequestMapping("/system/selectSystemByAccessId")
    @ApiOperation("根据access_id查询system")
    ApiResult<TSystem> selectSystemByAccessId(TSystem tSystem);
}
